#include "handler.h"

handler::handler(QObject *parent) : QObject(parent)
{

}
handler *handler::hand = new handler;
handler * handler::getInstance(){
    return  hand;
}
//p28:用emit发送一个自定义的信号
void handler::addScore(){
    emit beatMouse();
}
void handler::clearScore(){
    emit stopMouse();
}
